package com.twu.biblioteca.processor;

import com.twu.biblioteca.controller.LibraryController;
import com.twu.biblioteca.controller.MovieController;
import com.twu.biblioteca.model.Item;
import com.twu.biblioteca.ui.MovieView;

import java.util.List;

/**
 * Created by madhu on 2/5/14.
 */
public class ListMoviesMenuProcessor implements MenuProcessor {

    @Override
    public void processLibraryMenu(LibraryController libraryController) {
        List<Item> moviesInStack = new MovieController().getItemsInStack(libraryController.getLibrary().getMovies());
        new MovieView().displayListOfMoviesInStack(moviesInStack);
    }
}
